<template>
  <ComponentContainerProperty v-model="formData.style">
    <template #default>
      <el-form :model="formData" label-width="100px">
        <!-- 搜索占位符 -->
        <el-form-item label="搜索占位符" prop="searchPlaceholder">
          <el-input 
            v-model="formData.searchPlaceholder" 
            placeholder="请输入搜索框占位符文字"
            clearable
          />
        </el-form-item>
      </el-form>
    </template>
  </ComponentContainerProperty>
</template>

<script setup lang="ts">
import { SearchNavbarProperty } from './config'
import { useVModel } from '@vueuse/core'

defineOptions({ name: 'SearchNavbarProperty' })

const props = defineProps<{ modelValue: SearchNavbarProperty }>()
const emit = defineEmits(['update:modelValue'])

const formData = useVModel(props, 'modelValue', emit)
</script>

